<template>
  <div class="ref">
    <button class="jump-btn" ref="btn" @click="showRef">click to show ref</button>
  </div>
</template>

<script>
export default {
  name: 'TestRef',
  methods: {
    showRef() {
      console.log('btn-ref: ', this.$refs.btn)
    }
  }
}
</script>